﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Solution;

namespace Mall.AdminSystem.Controllers
{
    public class SettingController : BaseController
    {

        /// <summary>
        /// 设置首页
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            return View();
        }


        /// <summary>
        /// 清理缓存
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        public JsonResult CleanCache()
        {
            StandardJsonResult rs = new StandardJsonResult() {State = 0,Message="ok"};
            CacheHelper.RemoveAllCache();
            return Json(rs, JsonRequestBehavior.AllowGet);
        }
    }
}